<?php foreach ($head as $key => $value): ?>
    <th><?php echo $this->Paginator->sort($key, $value); ?></th>
<?php endforeach; ?>